package com.example.dao.mapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.common.b_pojo.BRole;
import org.apache.ibatis.annotations.Param;

import com.example.common.b_pojo.BAdmin;
import com.example.common.b_pojo.BAdminUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 111
* @description 针对表【b_admin】的数据库操作Mapper
* @createDate 2024-08-09 20:50:05
* @Entity com.example.common.b_pojo.BAdmin
*/
@Mapper
public interface BAdminMapper extends BaseMapper<BAdmin> {

    BAdminUser selectBAdminAndRoleAndMenuByadmin(String admin);

    List<BAdmin> selectByAdminAndPhoneBAdmin(@Param("admin") String admin, @Param("phone") String phone);

    Page<BAdminUser> selectBAdminAndRoleAndMenuByAdmin(Page<BAdminUser> page, LambdaQueryWrapper<BAdminUser> queryWrapper);

    int updateisdelectByid(@Param("id") Long id);

    List<BRole> selectRoleAndMenuById(Long id);
}
